# 编译.proto文件
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative ihos/ihos.proto

# 编译ihos service
cd ihos_service
go build -o ../build/ihos_service
GOOS=windows go build -o ../build/ihos_service.exe
cd ..

# 编译ihos rest
cd ihos_rest
go build -o ../build/ihos_rest
GOOS=windows go build -o ../build/ihos_rest.exe
cd ..